#ifndef MOTORWORKER_H
#define MOTORWORKER_H

#include "sensorworker.h"

class MotorWorker : public SensorWorker
{
    Q_OBJECT
public:
    MotorWorker(ushort di, ushort d0, int mode, QObject *parent = nullptr);
    void stop() override;
    void process() override;

signals:
    void motorStateChanged(bool running);

private:
    void handleButtonPress();
    int m_mode;
};

#endif // MOTORWORKER_H
